package com.daisuxia.web.service;

import com.daisuxia.web.pojo.RepaymentDetail;

/**
 *
 */
public interface IRepaymentDetailService {

	public RepaymentDetail selectByPrimaryKey(Integer id);

	RepaymentDetail selectByOrderId(String orderId);
	
	/**
	 * 根据还款主表ID和detail状态进行查询
	 * @param repaymentId
	 * @param status
	 * @return
	 */
	RepaymentDetail selectByRepaymentIdAndStatus(Integer repaymentId,Integer status);

	/**
	 * 根据主键删除对象
	 * 
	 * @param id
	 */
	public boolean deleteByPrimaryKey(Integer id);

	/**
	 * 插入 对象
	 * 
	 * @param detail
	 */
	public boolean insert(RepaymentDetail detail);

	/**
	 * 插入 对象
	 *
	 * @param detail
	 */
	public boolean insertSelective(RepaymentDetail detail);

	/**
	 * 更新 象
	 * 
	 * @param detail
	 */
	public boolean updateByPrimaryKey(RepaymentDetail detail);


	/**
	 * 更新 象
	 *
	 * @param detail
	 */
	public boolean updateByPrimaryKeySelective(RepaymentDetail detail);
}
